//
//  EPMAddressEditViewController.m
//  myXianfeng
//
//  Created by 马继鵬 on 17/5/4.
//  Copyright © 2017年 EPM. All rights reserved.
//

#import "EPMAddressEditViewController.h"

@interface EPMAddressEditViewController ()

@end

@implementation EPMAddressEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.navigationItem.title = @"添加地址";
    UIButton* btn = [[UIButton alloc]init];
    [btn sizeToFit];
    [btn setTitle:@"保存" forState:UIControlStateNormal];
    [btn setTitleColor:appColor forState:UIControlStateNormal];
    [btn addTarget:self action:@selector(actionSaveEditing:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem* barItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
    
    self.navigationItem.rightBarButtonItem = barItem;
}

#pragma mark - 保存 -

- (void)actionSaveEditing:(UIBarButtonItem*)sender{
 
    
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
